﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true" CodeFile="Tim-Kiem-Tin-Tuc.aspx.cs" Inherits="Tim_Kiem_Tin_Tuc" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Kết quả tìm kiếm: <asp:Literal ID="litTimKiem" runat="server"></asp:Literal> -
        <%=Common.tieude %></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <div class="benTrai" style="z-index: 9;">
        <div>
            <dx:TimKiemLeft ID="TimKiemLeft" runat="server" EnableViewState="false" />
        </div>
        <div style="padding-top: 20px;">
            &nbsp</div>
        <div class="borderlienhetrai" style="height: auto">
            <dx:ThietKeWebLeft ID="ThietKeWebLeft" runat="server"  EnableViewState="false" />
        </div>
        <div style="padding-top: 20px;">
            &nbsp</div>
        <div class="bordertrai" style="height: auto;">
            <dx:BaiVietLeft ID="BaiVietLeft" runat="server" EnableViewState="false" />
        </div>
        <div style="padding-top: 20px;">
            &nbsp</div>
        <div class="bordertrai" style="height: auto;">
            <dx:MangXaHoi ID="MangXaHoi" runat="server" EnableViewState="false" />
        </div>
        <div style="padding-top: 20px;">
            &nbsp</div>
        <div class="bordertrai" style="height: auto;">
            <dx:QuangCaoDichVuLeft ID="QuangCaoDichVuLeft" runat="server" EnableViewState="false" />
        </div>
    </div>
    <div class="benPhai">
    <div class="linkchuyenmucdetail">
                <asp:Image ID="imagearrow" runat="server" ImageUrl="~/Images/dotnetgroup/gohome.png"
                    Width="16px" EnableViewState="false" />
                <asp:HyperLink ID="linkHome" runat="server" EnableViewState="false" NavigateUrl="~/"
                    CssClass="linkhomedetail">Trang Chủ</asp:HyperLink>
                »
                <asp:HyperLink ID="linkTinTuc" runat="server" EnableViewState="false" NavigateUrl="#"
                    CssClass="linkhomedetail">Tìm Kiếm</asp:HyperLink>
            </div>
        <div class="borderphai" style="position:relative; height: auto">
         <div class="left-content">
                <div class="tintuc-content">
                    <asp:Label runat="server" ID="lbKoKQ" Visible="False"></asp:Label>
                    <!-- Hien thi ket qua danh sach tim kiem -->
                    <asp:DataList ID="dlKetQuaTimKiem" runat="server" RepeatColumns="1" CellPadding="2"
                        RepeatLayout="Flow">
                        <ItemTemplate>
                            <div class="sub-tintuc hr-green">
                                <div class="img-sub-tintuc">
                                    <asp:HyperLink ID="HyTieuDe" runat="server" CssClass="TinTuc" NavigateUrl='<%# "TinTuc/" + GetTieuDe(Eval("TieuDe")) +"_" +  Eval("Id") +".aspx" %>'>
                                <img src="<%# "Upload/AnhDaiDien/" + Eval("AnhDaiDien") %>"
                                    width="134px" height="107px" alt="1144953 3 2x">
                                    </asp:HyperLink>
                                </div>
                                <div class="nd-sub-tintuc">
                                    <div class="td-sub-tintuc">
                                        <a href='<%# "TinTuc/" + GetTieuDe(Eval("TieuDe")) +"_" +  Eval("Id") +".aspx" %>'>
                                            <%# Eval("TieuDe") %>
                                        </a>
                                        <div class="bd-sub-tintuc">
                                            <p>
                                                <%# Eval("Tomtat").ToString().Length > 250 ? Eval("TomTat").ToString().Substring(0, 250) + "..." : Eval("TomTat")%></p>
                                        </div>
                                        <div class="xt-sub-tintuc">
                                            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="TinTuc" EnableViewState="false" NavigateUrl='<%# "TinTuc/" + GetTieuDe(Eval("TieuDe")) +"_" +  Eval("Id") +".aspx" %>'>
                                                Xem thêm
                                            </asp:HyperLink>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
                <div  style="bottom: 0px; clear: both; font-size: 13px; padding-left: 10px;">
                    <div class="nav-head-tc" style="color: Maroon; font-weight: bold">
                        <cc1:Pager ID="Pager1" runat="server" PreviousClause="Lùi" NextClause="Tiếp" LastClause="Cuối"
                            FirstClause="Đầu" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                            ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang" OfClause=" / "
                            PageSize="10" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True" />
                    </div>
                </div>
            </div>
            </div>
    </div>
</asp:Content>

